import java.util.Scanner;
public class F{
  public static void main (String [] args){
    Scanner cin=new Scanner (System.in 

);
    String str=cin.nextLine();
    StringBuffer sb =new StringBuffer(str);//初始化
    System.out.print(sb.reverse().toString());//倒叙
  }
}